import {get,post,del,put} from './request'

//首页数据
export const getBannerAll = ()=> get(`/cms/Banner/getBannerAll`)

export const indexfront = ()=> get(`/eduservice/indexFront/index`)

//登录

export const login = (data)=> post(`/cms/ucenterMember/login`,data)

export const register = (data)=> post(`/cms/ucenterMember/register`,data)

export const getMemberInfo = ()=> get(`/cms/ucenterMember/getMemberInfo`)

export const getMemberById = (id)=> get(`/cms/ucenterMember/getById?id=${id}`)

//修改密码

export const modifyucenter = (data)=> put(`/cms/ucenterMember/modify`,data)

export const modifyUcenterMember = (data)=> put(`/cms/ucenterMember/modifyUcenterMember`,data)

//讲师数据


///eduservice/Front/pageTeacher?currnet=0&limit=8
export const pageTeacher = (currnet,limit)=> get(`/eduservice/Front/pageTeacher?currnet=${currnet}&limit=${limit}`)

export const getTeacherByIds = (id)=> get(`/eduservice/Front/getTeacherById?id=${id}`)


//课程

export const pageCourse = (currnet,limit,data)=> post(`/eduservice/CourseFront/pageCourse?currnet=${currnet}&limit=${limit}`,data)


export const getAllSubject = ()=> get(`/eduservice/subject/getAllSubject`)


export const getFrontCourseInfo = (id)=> get(`/eduservice/CourseFront/getFrontCourseInfo?id=${id}`)

//获取视频凭证


export const getPlayAuthv = (id)=> get(`/eduoss/getPlayAuth?id=${id}`)

//评论

export const pageComment = (currnet,limit,id)=> get(`/cms/comment/pageComment?currnet=${currnet}&limit=${limit}&id=${id}`)

export const removeComment = (id)=> del(`/cms/comment/removeComment?id=${id}`)

export const addComment = (data)=> post(`/cms/comment/addComment`,data)
